﻿#region zh-CHS 2006 - 2010 DemoSoft 团队 | en 2006-2010 DemoSoft Team

//     NOTES
// ---------------
//
// This file is a part of the MMOSE(Massively Multiplayer Online Server Engine) for .NET.
//
//                              2006-2010 DemoSoft Team
//
//
// First Version : by H.Q.Cai - mailto:caihuanqing@hotmail.com

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU Lesser General Public License as published
 *   by the Free Software Foundation; either version 2.1 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

#region zh-CHS 包含名字空间 | en Include namespace
using System;

#endregion

namespace Demo.Mmose.Core.Entity.Suit.Spell
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="auraEven"></param>
    public delegate void AuraEvenCallback<ObjectT, AuraT>( AuraEven<ObjectT, AuraT> auraEven ) where AuraT : Aura;

    #region zh-CHS 共有的事件数据类 | en Public EventArgs Class

    /// <summary>
    /// AuraCollection的事件数据类
    /// </summary>
    public class AuraCollectionEventArgs<T> : EventArgs where T : Aura
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AuraCollectionEventArgs( AuraCollection auraCollection )
        {
            m_AuraCollection = auraCollection;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// AuraCollection的数据
        /// </summary>
        private AuraCollection m_AuraCollection = null;
        #endregion
        /// <summary>
        /// AuraCollection实例
        /// </summary>
        public AuraCollection AuraCollection
        {
            get { return m_AuraCollection; }
        }
        #endregion
    }

    /// <summary>
    /// AuraCollection的事件数据类
    /// </summary>
    public class AddingAuraCallEventArgs<T> : AuraCollectionEventArgs<T> where T : Aura
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AddingAuraCallEventArgs( T aura, AuraCollection auraCollection ) :
            base( auraCollection )
        {
            m_AddAura = aura;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_AddAura = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T AddAura
        {
            get { return m_AddAura; }
        }
        #endregion
    }

    /// <summary>
    /// AuraCollection的事件数据类
    /// </summary>
    public class AddedAuraCallEventArgs<T> : AuraCollectionEventArgs<T> where T : Aura
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AddedAuraCallEventArgs( T aura, AuraCollection auraCollection ) :
            base( auraCollection )
        {
            m_AddAura = aura;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_AddAura = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T AddAura
        {
            get { return m_AddAura; }
        }
        #endregion
    }

    /// <summary>
    /// AuraCollection的事件数据类
    /// </summary>
    public class RemovingAuraCallEventArgs<T> : AuraCollectionEventArgs<T> where T : Aura
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public RemovingAuraCallEventArgs( T aura, AuraCollection auraCollection ) :
            base( auraCollection )
        {
            m_RemoveAura = aura;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_RemoveAura = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T RemoveAura
        {
            get { return m_RemoveAura; }
        }
        #endregion
    }

    /// <summary>
    /// AuraCollection的事件数据类
    /// </summary>
    public class RemovedAuraCallEventArgs<T> : AuraCollectionEventArgs<T> where T : Aura
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public RemovedAuraCallEventArgs( T aura, AuraCollection auraCollection ) :
            base( auraCollection )
        {
            m_RemoveAura = aura;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private T m_RemoveAura = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public T RemoveAura
        {
            get { return m_RemoveAura; }
        }
        #endregion
    }

    /// <summary>
    /// Aura的事件数据类
    /// </summary>
    public class AuraCallEventArgs : EventArgs
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AuraCallEventArgs( Aura aura )
        {
            m_Aura = aura;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private Aura m_Aura = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public Aura Aura
        {
            get { return m_Aura; }
        }

        #endregion
    }

    /// <summary>
    /// Aura的事件数据类
    /// </summary>
    public class AuraActionCallEventArgs : EventArgs
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public AuraActionCallEventArgs( Aura aura, object arg )
        {
            m_Aura = aura;
            m_Argument = arg;
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private Aura m_Aura = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public Aura Aura
        {
            get { return m_Aura; }
        }

        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private object m_Argument = null;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public object Argument
        {
            get { return m_Argument; }
            internal set { m_Argument = value; }
        }

        #endregion
    }

    /// <summary>
    /// AuraCollection的事件数据类
    /// </summary>
    public class ApplyingAuraCallEventArgs : AuraCallEventArgs
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public ApplyingAuraCallEventArgs( Aura aura ) :
            base( aura )
        {
        }
        #endregion

        #region zh-CHS 共有属性 | en Public Properties
        #region zh-CHS 私有成员变量 | en Private Member Variables
        /// <summary>
        /// 
        /// </summary>
        private bool m_IsCancel = false;
        #endregion
        /// <summary>
        /// 
        /// </summary>
        public bool IsCancel
        {
            get { return m_IsCancel; }
        }
        #endregion
    }

    /// <summary>
    /// AuraCollection的事件数据类
    /// </summary>
    public class ApplyedAuraCallEventArgs : AuraCallEventArgs
    {
        #region zh-CHS 构造和初始化和清理 | en Constructors and Initializers and Dispose
        /// <summary>
        /// 初始化构造
        /// </summary>
        /// <param name="baseCreature"></param>
        public ApplyedAuraCallEventArgs( Aura aura ) :
            base( aura )
        {
        }
        #endregion
    }

    #endregion

}
#endregion